-- ----------------------------------------------------------
--
-- Author: czf
-- date: 2018-12-14
-- description: 享元模式-圆形
--
-- ----------------------------------------------------------

Circle = Circle or BaseClass(Shape)

function Circle:__init(color)
	self.color = color
end

function Circle:SetX(x)
	self.x = x
end

function Circle:SetY(y)
	self.y = y
end

function Circle:SetRadius(radius)
	self.radius = radius
end

function Circle:Draw()
	print("Circle: Draw() [Color : " .. self.color ..", x : " .. self.x ..", y :" .. self.y ..", radius :" .. self.radius)
end